<?php
declare(strict_types=1);

namespace app\common\validate;

use think\Validate;

/**
 * | Notes：账单验证表
 * +----------------------------------------------------------------------
 * | PHP Version 7.2+
 * +----------------------------------------------------------------------
 * | Copyright (c) 2011-2020 https://www.xxq.com.cn, All rights reserved.
 * +----------------------------------------------------------------------
 * | Author: 和好 <389123492@qq.com>
 * +----------------------------------------------------------------------
 * | Date: 2020/12/17 17:49
 * +----------------------------------------------------------------------
 */
class Bill extends Validate
{
    // 验证规则
    protected  $rule = [
        'bill_type_id' => 'require',
    ];

    protected  $message = [
        'bill_type_id.require' => '缺少分类ID参数',
    ];

    protected  $scene = [
        'billList' => ['bill_type_id'],
    ];
}